package com.ruoyi.formwork.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.formwork.domain.BaseFormWork;
import com.ruoyi.formwork.mapper.BaseFormWorkMapper;
import com.ruoyi.formwork.service.BaseFormWorkService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseFormWorkServiceImpl extends ServiceImpl<BaseFormWorkMapper, BaseFormWork> implements BaseFormWorkService {
    @Resource
    private BaseFormWorkMapper baseFormWorkMapper;

    @Override
    public List<BaseFormWork> queryBaseFormWork(BaseFormWork baseFormWork) {
        return baseFormWorkMapper.queryBaseFormWork(baseFormWork);
    }

    @Override
    public boolean deleteBaseFormWork(BaseFormWork baseFormWork) {

        return baseFormWorkMapper.deleteBaseFormWork(baseFormWork.getId())>0;
    }
}
